package com.ksyun.seckill.service;

import com.ksyun.seckill.keygen.SnowflakeKeyGenerator;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author ksc
 */
@Service
@Slf4j
public class BizService {

    @Autowired
    private SnowflakeKeyGenerator snowflakeKeyGenerator;

    public String generateFriendCode() {
        return "F" + snowflakeKeyGenerator.generateKey();
    }


}
